Dynamic Distribution  List Question
I'm trying to create a dynamic distribution list based on users in just 1 MDB on 1 particular Exchange 2007 server. I don't have a problem creating the group via power shell however my recipient filter is not producing any results when I go back to preview the group. Here's the filter I'm using. Anyone see something I'm doing wrong? ((((((RecipientType -eq 'UserMailbox') -and (ServerName -eq 'MYMAILServer'))) -and (Database -eq 'CN=SG1,CN=InformationStore,CN=MYMAILServer-01,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=MyCompany,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mycompany,DC=com'))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')))
April 13th, 2010 2:27am

On Mon, 12 Apr 2010 23:27:18 +0000, Chaz4031 wrote:>>>I'm trying to create a dynamic distribution list based on users in just 1 MDB on 1 particular Exchange 2007 server. I don't have a problem creating the group via power shell however my recipient filter is not producing any results when I go back to preview the group. Here's the filter I'm using. Anyone see something I'm doing wrong? >> >>((((((RecipientType -eq 'UserMailbox') -and (ServerName -eq 'MYMAILServer'))) -and (Database -eq 'CN=SG1,CN=InformationStore,CN=MYMAILServer-01,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=MyCompany,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mycompany,DC=com'))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*'))) You're missing the name of the mailbox database. You're using the nameof the storage group.You can simplify the filter, too. You don't need the name of theserver if you name the database.I _think_ the use of single-quotes in the right-hand "-like" operandmay also be a problem.You'll have a problem (maybe) if you don't set the"-RecipientContainer". You probably want the DDL to search the entireAD, so set it to "-RecipientContainer dc=mycompany,dc=com".You haven't specified the -OrganizationUnit, either. The DDL will becreated where??This should work (and without all the extra parentheses -- but itdoesn't have the -recipientcontainer or -organizationunit parametersand values). Replace the "<missing-database-name>" with the name ofyour database:RecipientType -eq 'UserMailbox' -and Database -eq'CN=<missing-database-name>,'CN=SG1,CN=InformationStore,CN=MYMAILServer-01,CN=Servers,CN=ExchangeAdministrative Group (FYDIBOHF23SPDLT),CN=AdministrativeGroups,CN=MyCompany,CN=MicrosoftExchange,CN=Services,CN=Configuration,DC=mycompany,DC=com' -and Name-notlike "SystemMailbox{*" -and Name -notlike "CAS_{*"---Rich MatheisenMCSE+I, Exchange MVP--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
April 13th, 2010 6:07am

You're right, the database name was missing. However I still had to include all those parentheses. I do have a new problem now though. I created a dynamic distribution list for each one of my Exchange 2007 databases. If I look at the filter, and click preview all the users populate the group everything there works perfect. I then took it one step further and created a normal distribution list, and added to it as members all these dynamic distribution lists I created. Just so happens today I needed to send out a mass email to everyone. I performed a send as (sent from an Admin mailbox) for the email, and used the normal distribution list with all the dynamic groups in it. I hit send, and nothing was delivered. I then excluded the large distribution list, and just sent to the dynamic groups separately, and that did not work either. Any ideas what this could be? Are you not all to have a normal distribution list with dynamic groups as members? For some reason, this seems like one of those Exchange 2007 gotchas that I'm not aware of.
April 15th, 2010 4:28am

On Thu, 15 Apr 2010 01:28:02 +0000, Chaz4031 wrote:>You're right, the database name was missing. However I still had to include all those parentheses. I do have a new problem now though. I created a dynamic distribution list for each one of my Exchange 2007 databases. If I look at the filter, and click preview all the users populate the group everything there works perfect. I then took it one step further and created a normal distribution list, and added to it as members all these dynamic distribution lists I created. Just so happens today I needed to send out a mass email to everyone. I performed a send as (sent from an Admin mailbox) for the email, and used the normal distribution list with all the dynamic groups in it. I hit send, and nothing was delivered. I then excluded the large distribution list, and just sent to the dynamic groups separately, and that did not work either. Any ideas what this could be? Are you not all to have a normal distribution list with dynamic groups as members? For some reason, this seems>like one of those Exchange 2007 gotchas that I'm not aware of. Did you check the mailbox of the user you sent the mail as? Any NDRwould go to the sender, not to the mailbox that impersonated thesender.You can also use message tracking and see what happened when you sentthe e-mail do you see "EXPAND" events in the log for that message? Doyou see "FAIL"?---Rich MatheisenMCSE+I, Exchange MVP--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
April 15th, 2010 5:24am

I haven't looked at the message tracking yet. However I did look at the sender's mailbox and I see absolutely no NDRs from those emails I sent. I know I have the right permissions to send from that mailbox, because shortly after my new distribution lists didn't work I ended up using an older one we've used in the past and that worked fine. Still no idea why this didn't work.
April 15th, 2010 2:20pm

On Thu, 15 Apr 2010 11:20:28 +0000, Chaz4031 wrote:>I haven't looked at the message tracking yet. However I did look at the sender's mailbox and I see absolutely no NDRs from those emails I sent. I know I have the right permissions to send from that mailbox, because shortly after my new distribution lists didn't work I ended up using an older one we've used in the past and that worked fine. Still no idea why this didn't work.Find the information in the tracking logs first.---Rich MatheisenMCSE+I, Exchange MVP--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
April 16th, 2010 6:38am

The answer - I wasn't using the right recipient container. It was pointed to the defaults "Users" OU. We don't store our user accounts in this OU.
April 17th, 2010 6:45am

... on a different note... is there any reason why I would not be able to "expand" a distribution list. So far the only common theme I see is that they are all Dynamic Distribution Lists. All my regular mail-enabled dist list are able to Expand in outlook. If that a feature by design?? Any help would be greatly appreicated, Thanks, Glen Roberts - MCSE+I, CCNA
Free Windows Admin Tool Kit Click here and download it now
June 10th, 2010 4:14am

On Thu, 10 Jun 2010 01:14:53 +0000, Glen Roberts - MCSE, CCNA wrote: > > >... on a different note... is there any reason why I would not be able to "expand" a distribution list. So far the only common theme I see is that they are all Dynamic Distribution Lists. All my regular mail-enabled dist list are able to Expand in outlook. If that a feature by design?? > >Any help would be greatly appreicated, A dynamic DL doesn't have a membership, all it has is an LDAP query. There's nothing there to expand. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
June 10th, 2010 5:05am

ok thanks for clarifying that up for me... that makes sense since the group can always be changing based on attributes..
Free Windows Admin Tool Kit Click here and download it now
June 10th, 2010 6:51pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics